<template>
  <div class="page_container">
    <p class="page_title">网页开播</p>
    <div class="content">
      <div class="top_info">
        <div class="left_info">
          <div class="awater"></div>
          <div>
            <p>{{info.name}}，你好！</p>
            <p>{{info.desc}}</p>
          </div>
        </div>
        <div class="right_arrows"></div>
      </div>
      <div class="meeting_box">
        <p class="lable_title">即将开始</p>
        <div v-for="(item,index) in startList" :key="index" class="meet_list">
          <div class="left_info">
            <div class="post"></div>
            <div>
              <p>{{item.title}}</p>
              <span>{{item.date}}</span> <br>
              <span>{{item.status?'已开始':'倒计时：00时06分25秒'}}</span>
            </div>
          </div>
          <div class="right_arrows" :class="{'active_status':item.status}">进入会议</div>
        </div>

        <p class="lable_title">历史会议</p>
        <div v-for="(item,index) in endList" :key="index" class="meet_list">
          <div class="left_info">
            <div class="post"></div>
            <div>
              <p>{{item.title}}</p>
              <span>{{item.date}}</span> <br>
              <span>{{item.status?'已开始':'倒计时：00时06分25秒'}}</span>
            </div>
          </div>
          <div class="right_arrows">观看回放</div>
        </div>
      </div>

    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      info: {
        name: '李思源',
        desc: '浪漫DE罪',
      },
      startList: [
        { post: '', title: '小儿感冒课题会议', date: '2021-02-11 14:30~15:00', status: true },
        { post: '', title: '小儿感冒课题会议', date: '2021-02-11 14:30~15:00', status: false },
      ],
      endList: [{ post: '', title: '小儿感冒课题会议', date: '2021-02-11 14:30~15:00' }],
    }
  },
  mounted() {},
  methods: {},
}
</script>

<style  scoped lang="scss">
.page_container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  background: #f0f0f0;
  overflow: auto;
.content {
  width: 60%;
  margin: 0 auto;
}
.top_info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  .left_info {
    display: flex;
    align-items: center;
    font-size: 18px;
    line-height: 10px;
    .awater {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background: #fff;
      margin-right: 10px;
    }
  }

  .right_arrows {
    width: 40px;
    height: 40px;
    background: #fff;
  }
  .active_status {
    background: #000;
  }
}
.meeting_box {
  background: #fff;
  margin-top: 20px;
  padding: 20px;
  .lable_title {
    border-left: 8px solid blue;
    padding-left: 10px;
  }
  .meet_list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    .left_info {
      display: flex;
      justify-content: space-between;
      align-items: center;
      .post {
        width: 120px;
        height: 120px;
        background: #f0f0f0;
        margin-right: 10px;
      }
    }
    .right_arrows {
      width: 100px;
      border-radius: 20px;
      background: #f0f0f0;
      text-align: center;
      line-height: 35px;
    }
  }
}
}
</style>
